import type { IMenu } from '@/api/role'

export const treeData: IMenu[] = [
  {
    name: '营销工',
    status: 0,
    type: 1,
    children: [
      {
        name: '智能名片',
        status: 0,
        type: 1,
        children: [
          {
            name: '查看',
            status: 0,
            type: 1,
          },
          {
            name: '编辑',
            status: 0,
            type: 1,
          },
        ],
      },
      {
        name: '名片统计',
        status: 0,
        type: 1,
        children: [
          {
            name: '查看',
            status: 0,
            type: 1,
          },
          // {
          //   name: '编辑',
          // },
        ],
      },
    ],
  },
  {
    name: '管理后台',
    status: 0,
    type: 1,
    children: [
      {
        name: '主页管理',
        status: 0,
        type: 1,
        children: [
          {
            name: '查看',
            status: 0,
            type: 1,
          },
          {
            name: '编辑',
            status: 0,
            type: 1,
          },
        ],
      },
      {
        name: '项目管理',
        status: 0,
        type: 1,
        children: [
          {
            name: '查看',
            status: 0,
            type: 1,
          },
          {
            name: '编辑',
            status: 0,
            type: 1,
          },
          {
            name: '新建',
            status: 0,
            type: 1,
          },
          {
            name: '删除',
            status: 0,
            type: 1,
          },
          {
            name: '批量导出',
            status: 0,
            type: 1,
          },
        ],
      },
      {
        name: '载体管理',
        status: 0,
        type: 1,
        children: [
          {
            name: '查看',
            status: 0,
            type: 1,
          },
          {
            name: '编辑',
            status: 0,
            type: 1,
          },
          {
            name: '新建',
            status: 0,
            type: 1,
          },
          {
            name: '删除',
            status: 0,
            type: 1,
          },
          {
            name: '批量导出',
            status: 0,
            type: 1,
          },
        ],
      },
    ],
  },
  {
    name: '系统管理',
    status: 0,
    type: 1,
    children: [
      {
        name: '机构信息',
        status: 0,
        type: 1,
        children: [
          {
            name: '查看',
            status: 0,
            type: 1,
          },
          {
            name: '编辑',
            status: 0,
            type: 1,
          },
        ],
      },
      {
        name: '成员管理',
        status: 0,
        type: 1,
        children: [
          {
            name: '新建部门',
            status: 0,
            type: 1,
          },
          {
            name: '添加成员',
            status: 0,
            type: 1,
          },
          {
            name: '批量添加',
            status: 0,
            type: 1,
          },
          {
            name: '批量导出',
            status: 0,
            type: 1,
          },

          {
            name: '设置权限',
            status: 0,
            type: 1,
          },
          {
            name: '删除',
            status: 0,
            type: 1,
          },
        ],
      },
      {
        name: '权限管理',
        status: 0,
        type: 1,
        children: [
          {
            name: '新增角色',
            status: 0,
            type: 1,
          },

          {
            name: '编辑',
            status: 0,
            type: 1,
          },
          {
            name: '删除',
            status: 0,
            type: 1,
          },
        ],
      },
    ],
  },
]

export const dataRights = [
  {
    // id: 1,
    name: '本人',
    value: 'Owner',
  },
  // {
  //   id: 2,
  //   name: '本人及下属',
  // },
  {
    // id: 3,
    name: '本部门',
    value: 'Dep',
  },
  {
    // id: 4,
    name: '本部门及下级部门',
    value: 'DepAndSubDep',
  },
  {
    // id: 4,
    name: '全部',
    value: 'CustomerAll',
  },
]
// <el-radio :name="1">本人</el-radio>
// <el-radio :name="2">本人及下属</el-radio>
// <el-radio :name="3">本部门</el-radio>
// <el-radio :name="4">本部门及下级部门</el-radio>
